package test4;

public class Day {
    private int y;
    private int m;
    private int d;

    public Day() {
    }

    public Day(int y, int m, int d) {
        this.y = y;
        this.m = m;
        this.d = d;
    }

    /**
     * 获取
     * @return y
     */
    public int getY() {
        return y;
    }

    /**
     * 设置
     * @param y
     */
    public void setY(int y) {
        this.y = y;
    }

    /**
     * 获取
     * @return m
     */
    public int getM() {
        return m;
    }

    /**
     * 设置
     * @param m
     */
    public void setM(int m) {
        this.m = m;
    }

    /**
     * 获取
     * @return d
     */
    public int getD() {
        return d;
    }

    /**
     * 设置
     * @param d
     */
    public void setD(int d) {
        this.d = d;
    }

    public String toString() {
        return "Day{y = " + y + ", m = " + m + ", d = " + d + "}";
    }
}
